package com.wtpm.sys.controller;

import java.util.List;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.fwk.spbt.controller.BaseController;
import com.fwk.spbt.vo.RequestVO;
import com.fwk.spbt.vo.ResponeVO;
import com.fwk.spbt.vo.ResponsePageVO;
import com.wtpm.sys.entity.SysRole;
import com.wtpm.sys.vo.SysRoleVO;
import com.wtpm.sys.vo.SysUserVO;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * 管理用户控制器
 * 
 */
@Api(tags = { "sys->角色维护" })
@RestController
@RequestMapping("/sys/role")
public class RoleController extends BaseController {

	@ApiOperation(value = "新增角色")
	@RequestMapping(value = "/add", method = { RequestMethod.POST })
	public ResponeVO<String> add(@RequestBody SysRoleVO reqDTO) {
		return response();
	}

	@ApiOperation(value = "修改用户")
	@RequestMapping(value = "/update", method = { RequestMethod.POST })
	public ResponeVO<String> update(@RequestBody SysUserVO reqDTO) {
		return response();
	}

	@ApiOperation(value = "分页查找")
	@RequestMapping(value = "/paging", method = { RequestMethod.POST })
	public ResponeVO<ResponsePageVO<SysRole>> paging(@RequestBody RequestVO reqDTO) {
		ResponsePageVO<SysRole> page = null;
		return response(page);
	}

	@ApiOperation(value = "角色列表")
	@RequestMapping(value = "/roles", method = { RequestMethod.POST })
	public ResponeVO<List<SysRoleVO>> roles(@RequestBody RequestVO reqDTO) {
		List<SysRoleVO> roles = null;
		return response(roles);
	}

}
